{extend name='admin@public/content'}


{block name="content"}
<!-- 表单搜索 开始 -->
{include file='wechat@fans/search_inc'}
<!-- 表单搜索 结束 -->

<form onsubmit="return false;" data-auto="true" method="post">
    <!--{if empty($list)}-->
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    <!--{else}-->
    <input type="hidden" value="resort" name="action">
    <table class="layui-table" lay-skin="line">
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <input data-auto-none="none" data-check-target='.list-check-box' type='checkbox'/>
            </th>
            <th class='text-left'>用户昵称</th>
            <th class='text-left'>手机号</th>
            <th class='text-left'>车牌号</th>
            <th class='text-left'>姓名</th>
            <th class='text-left'>用户等级</th>
            <th class='text-left'>积分等级</th>
            <th class='text-left'>团队人数</th>
            <th class='text-left'>积分数量</th>
            <th class='text-left'>激活时间</th>
            <th class='text-left'>所属维修企业</th>

            <th></th>
        </tr>
        </thead>
        <tbody>
        {foreach $list as $key=>$vo}
        <tr>
            <td class='list-table-check-td think-checkbox'>
                <input class="list-check-box" value='{$vo.id}' type='checkbox'/>
            </td>
            <td class='text-left nowrap'>
                {$vo.nickname|default='未设置昵称'}
            </td>
            <td class='text-left nowrap'>
            {$vo.phone|default='未绑定账号'}
        </td>
            <td class='text-left nowrap'>
                {$vo.carid|default='未绑定车牌'}


            </td>
            <td class='text-left nowrap'>
                {$vo.truename|default=''}
            </td>
            <td class='text-left nowrap'>
                {$vo.member_level_info|default=''}
            </td>
            <td class="text-left nowrap">
                {if condition="$vo.level eq 1"}
                一级会员
                {elseif condition= "$vo.level eq 2" /}
                二级会员
                {elseif condition="$vo.level eq 3"}
                三级会员
                {elseif condition="$vo.level eq 4"}
                四级会员
                {else/}
                普通会员
                {/if}
            </td>
            <td class='text-left nowrap'>
                {$vo.team_num|default=''}
            </td>
            <td class='text-left nowrap'>
                {$vo.integral + $vo.spread_used + $vo.spread_integral}
            </td>


            <td class='text-left nowrap'>{$vo.create_at}</td>
            <td class='text-left nowrap'>{$vo.company.shop_name|default='-'}</td>

            <td class="text-center nowrap">
                <a title="修改用户信息" data-modal="{:url('wechat/fans/user_add')}?member_id={$vo.id}">编辑</a> |   {if auth("$classuri/user_balance")} <a data-open="{:url('wechat/fans/integral')}?member_id={$vo.id}" data-title="操作用户积分">用户积分详情</a> |{/if}  <a data-open="{:url('admin/member/member_org')}?member_id={$vo.id}">查看关系</a> | <a data-update="{$vo.id}" data-action="{:url('backadd')}">{if condition="$vo.is_disable eq 1"}禁用{else/}启用{/if}</a>
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {if isset($page)}<p>{$page|raw}</p>{/if}
    <!--{/if}-->
</form>
{/block}

{block name="script"}
<!--表单初始化-->
<script>
    window.laydate.render({range: true, elem: '#create_at'});
    window.form.render();
</script>

{/block}
